package com.syj.collect.entry;

import com.syj.collect.base.BaseBean;

import java.io.Serializable;
import java.util.List;
import java.util.Objects;

public class StationPointBean extends BaseBean implements Serializable {
    private List<StationPoint> data;

    public List<StationPoint> getData() {
        return data;
    }

    public void setData(List<StationPoint> data) {
        this.data = data;
    }

    public static class StationPoint implements Serializable {
        /**
         * stationCode : A43
         * address : null
         * name : 大学城
         * county : 南山区
         * description : null
         * lon : 113.9773
         * id : 1
         * riverSystem : 深圳湾
         * river : 大沙河
         * lat : 22.5935
         */

        private String stationCode;
        private Object address;
        private String name;
        private String county;
        private String description;
        private Double lon;
        private int id;
        private String riverSystem;
        private String river;
        private Double lat;
        private String grade;

        public String getGrade() {
            return grade;
        }

        public void setGrade(String grade) {
            this.grade = grade;
        }

        public String getStationCode() {
            return stationCode;
        }

        public void setStationCode(String stationCode) {
            this.stationCode = stationCode;
        }

        public Object getAddress() {
            return address;
        }

        public void setAddress(Object address) {
            this.address = address;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getCounty() {
            return county;
        }

        public void setCounty(String county) {
            this.county = county;
        }

        public String getDescription() {
            return description;
        }

        public void setDescription(String description) {
            this.description = description;
        }

        public Double getLon() {
            return lon;
        }

        public void setLon(Double lon) {
            this.lon = lon;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getRiverSystem() {
            return riverSystem;
        }

        public void setRiverSystem(String riverSystem) {
            this.riverSystem = riverSystem;
        }

        public String getRiver() {
            return river;
        }

        public void setRiver(String river) {
            this.river = river;
        }

        public Double getLat() {
            return lat;
        }

        public void setLat(Double lat) {
            this.lat = lat;
        }

        @Override
        public boolean equals(Object o) {
            if (this == o) return true;
            if (o == null || getClass() != o.getClass()) return false;
            StationPoint that = (StationPoint) o;
            return lon.equals(that.lon) &&
                    lat.equals(that.lat);
        }

        @Override
        public int hashCode() {
            return Objects.hash(lon, lat);
        }
    }
}
